<?php
class App_Module_Admin_Component_Articles_Tpl_Filterform extends App_Module_Admin_Tpl_Block_Filterform
{
	protected $_form = 'filter/article';
	
	public function GetForm($ctrlName, $blog, $filter)
	{
        $this->ctrlName = $ctrlName;
        $this->blog = $blog;
        $this->filter = $filter;

		return $this->CreateForm($filter);
	}

	protected function GetActionUrl()
	{
		return array('module' => 'admin', 'ctrl' => $this->ctrlName, 'action' => 'list', 'blog' => $this->blog->GetId());
	}
	
	protected function GetResetUrl()
	{
		return array('module' => 'admin', 'ctrl' => $this->ctrlName, 'action' => 'list', 'blog' => $this->blog->GetId(), 'resetfilter' => 1);
	}
	
	protected function GetHeaderTitle()
	{
		return Mozg_Lang::_($this->Form($this->filter)->GetTitle());
	}
}